from make_db.base import *


class User(Base):
    id = Column(Integer, primary_key=True)
    uid = Column(String(40), comment='用户id')
    avatar = Column(String(255), comment='头像链接')
    nickname = Column(String(40), comment='用户名')
    username = Column(String(40), nullable=False, server_default=text("0"), comment='账号')
    password = Column(String(110), nullable=False, server_default=text("0"), comment='密码')

    __tablename__ = 'user'
